package org.jeecg.common.modules.doctor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.modules.doctor.entity.DoctorPatientRelation;

/**
 * @Description: doctor_patient_relation
 * @Author: jeecg-boot
 * @Date:   2020-08-15
 * @Version: V1.0
 */
public interface IDoctorPatientRelationService extends IService<DoctorPatientRelation> {

    /**
     * 是否存在
     * @param doctorId
     * @param patientId
     * @return
     */
    DoctorPatientRelation exists(String doctorId,String patientId);

    /**
     * 初始化医患关系
     * @param doctorId
     * @param patientId
     * @return 是否新建
     */
    DoctorPatientRelation initRelation(String doctorId, String patientId);
}
